package work;
import java.util.Scanner;

public class Palindrome {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            int x = sc.nextInt();
            int temp = x;
            int num = 0;

            while (temp != 0) {
                int ge = temp % 10;
                temp /= 10;
                num = 10 * num + ge;
            }

            if (x == num)
                System.out.println("true");
            else
                System.out.println("false");
        } finally {
            sc.close();
        }
    }
}